<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class CongzhiMoneyForm extends Model
{
    public $money;
    //public $real_name;
    public $channel_name;
    public $channel;
    public $orderno;
    public $orderlink;
    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['money','channel'], 'required'],
          //  [['real_name'],'string','min'=>1,'max'=>30],
            [['money'],'number','min'=>1,'max'=>50000],
            [['channel'],'integer'],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             //'real_name' => '充值备注',
             'money' => '充值金额',
             'channel'=>'充值通道',
             'channel_name'=>'充值通道',
             'orderno'=>'交易单号',
             'orderlink'=>'订单链接'
         ];
     }

}
